import {service1} from "./custReq";
function addData(url,data) {
  return service1({
    url,
    method:"post",
    data,
  })
}
function editdate(url,data) {
  return service1.put(url,data)
}
function editdate1(url) {
  //@PathVariable
  return service1.put(url)
}
function getDate(url) {
  return service1({
    url,
    method:"post",
    data:{}
  })
}
function delDate(url,data) {
  return service1({
    url,
    method:"delete",
    data,
  })
}
function checkOnly(url) {
  return service1({
    url,
    method:'post',
    data:{}
  })
}
export {
  addData,
  getDate,
  delDate,
  checkOnly,
  editdate,
  editdate1
}